<h2><?php echo $model->name; ?>的货主(发货人)信息</h2>

<div class="actionBar1">
<?php 
	if(isset($_GET['ok'])) {if($_GET['ok']==0) $mess='添加成功！'; else $mess='更新成功！';unset($_GET['ok']);}//判断添加/更新信息
	$act=isset($_GET['ret'])?$_GET['ret']:$ret;//判断show以后返回路径
	unset($_GET['ret']);unset($_GET['id']);
	$url=array($act)+$_GET;
?>
[<?php echo CHtml::link('返回',$url); ?>]
</div>

<table class="dataGrid"    width= "80%">
<tr>
	<th class="label"><?php echo CHtml::encode($model->getAttributeLabel('name')); ?>
</th>
    <td><?php echo CHtml::encode($model->name); ?>
</td>
</tr>
<tr>
	<th class="label"><?php echo CHtml::encode($model->getAttributeLabel('legal_person_name')); ?>
</th>
    <td><?php echo CHtml::encode($model->legal_person_name); ?>
</td>
</tr>
<tr>
	<th class="label"><?php echo CHtml::encode($model->getAttributeLabel('office_tel')); ?>
</th>
    <td><?php echo CHtml::encode($model->office_tel); ?>
</td>
</tr>
<tr>
	<th class="label"><?php echo CHtml::encode($model->getAttributeLabel('office_fax')); ?>
</th>
    <td><?php echo CHtml::encode($model->office_fax); ?>
</td>
</tr>
<tr>
	<th class="label"><?php echo CHtml::encode($model->getAttributeLabel('registered_address')); ?>
</th>
    <td><?php echo CHtml::encode($model->registered_address); ?>
</td>
</tr>
<tr>
	<th class="label"><?php echo CHtml::encode($model->getAttributeLabel('registered_capital')); ?>
</th>
    <td><?php echo CHtml::encode($model->registered_capital); ?>
</td>
</tr>
<tr>
	<th class="label"><?php echo CHtml::encode($model->getAttributeLabel('nature')); ?>
</th>
    <td><?php echo CHtml::encode($model->nature); ?>
</td>
</tr>
<tr>
	<th class="label"><?php echo CHtml::encode($model->getAttributeLabel('storage_manager')); ?>
</th>
    <td><?php echo CHtml::encode($model->storage_manager); ?>
</td>
</tr>
<tr>
	<th class="label"><?php echo CHtml::encode($model->getAttributeLabel('dispatcher')); ?>
</th>
    <td><?php echo CHtml::encode($model->dispatcher); ?>
</td>
</tr>
<tr>
	<th class="label"><?php echo CHtml::encode($model->getAttributeLabel('reckoner')); ?>
</th>
    <td><?php echo CHtml::encode($model->reckoner); ?>
</td>
</tr>
<tr>
	<th class="label"><?php echo CHtml::encode($model->getAttributeLabel('term')); ?>
</th>
    <td><?php echo CHtml::encode($model->term); ?>
</td>
</tr>
<tr>
	<th class="label"><?php echo CHtml::encode($model->getAttributeLabel('create_time')); ?>
</th>
    <td><?php echo CHtml::encode($model->create_time); ?>
</td>
</tr>
<?php foreach($linkman_models as $n=>$val):?>
<tr class="<?php echo $n%2?'even':'odd';?>">
	<th class="label"><?php echo CHtml::encode($val->getAttributeLabel('addr').($n+1)); ?>
</th>
    <td><?php echo CHtml::encode($val->addr); ?>
</td>
</tr>
<tr class="<?php echo $n%2?'even':'odd';?>">
	<th class="label"><?php echo CHtml::encode($val->getAttributeLabel('name')); ?>
</th>
    <td><?php echo CHtml::encode($val->name); ?>
</td>
</tr>
<tr class="<?php echo $n%2?'even':'odd';?>">
	<th class="label"><?php echo CHtml::encode($val->getAttributeLabel('mobile_no')); ?>
</th>
    <td><?php echo CHtml::encode($val->mobile_no); ?>
</td>
</tr>
<?php endforeach;?>
</table>
<?php if(isset($mess)) echo "<script>alert('$mess');</script>";?>
<div class="actionBar1">[<?php echo CHtml::link('返回',$url); ?>]
</div>